package user

import (
	"github.com/dgrijalva/jwt-go"
	"mime/multipart"
)

type (
	LoginReq struct {
		Username string `form:"username" uri:"usr" json:"json_u" binding:"required"`
		Password string `form:"password" uri:"pwd" json:"json_p" binding:"required"`
	}

	LoginOutReq struct {
		Token string `form:"token" binding:"required"`
	}

	HeadImgUpReq struct {
		Id    int                   `form:"id" json:"id" binding:"required"`
		Files *multipart.FileHeader `form:"file" json:"file" binding:"required"`
	}
)

type (
	CheckAuthRep struct {
		Uid  int
		Name string
		jwt.StandardClaims
	}
)
